package com.drool.demo.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.drool.demo.entity.ParamInfo;
import com.drool.demo.mapper.ParamInfoMapper;
import com.drool.demo.service.ParamInfoService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author zhy
 * @date 2020/1/16 10:48 下午
 * @description
 */
@Service("paramInfoService")
public class ParamInfoServiceImpl extends ServiceImpl<ParamInfoMapper, ParamInfo> implements ParamInfoService {
    private static final Logger LOGGER = LoggerFactory.getLogger(ParamInfoServiceImpl.class);

    @Resource
    private ParamInfoMapper paramInfoMapper;

    @Override
    public ParamInfo selectById(String paramId) {
        ParamInfo paramInfo = paramInfoMapper.selectById(paramId);
        LOGGER.info("ParamInfoServiceImpl-Sign：{}", paramInfo.getParamSign());
        return paramInfo;
    }

    @Override
    public void insertParam(ParamInfo paramInfo) {
        paramInfoMapper.insertParam(paramInfo);
    }

}
